import Http from '../mpf/http/http.js';

module.exports = {
  /**
   * 用户手机登录
   */
  phoneLogin: (config) => { return Http.post('/rest/view/member/V2/bindMobile', config); },
  /**
   * 微信授权判断
   */
  wxLogin: (config) => { return Http.post('/rest/view/member/tgLogin', config); },
  /**
   * 微信手机号授权
   */
  getPhoneLogin: (config) => { return Http.post('/rest/view/member/xcxTgAuthorizationMobile', config); },
  /**
   * 发送短信
   */
  getCaptcha: (config) => { return Http.post('/rest/view/smssend/bindMobile', config); },
  /**
   * 微信授权绑定
   */
  wxBind: (config) => { return Http.post('/rest/view/member/tgBindMobile', config); },
  /**
   * 更改密码发送短信
   */
  changeBindCaptcha: (config) => { return Http.post('/rest/member/payKeySms', config); },
  /**
   * 更改密码检验短信验证码
   */
  captchaInspect: (config) => { return Http.put('/rest/member/checkPayKeySms', config); },
  /**
   * 设置支付密码
   */
  setPayKey: (config) => { return Http.put('/rest/member/setPayKey', config); },
  /**
   * 获取微信模板id
   */
  getFormId: (config) => { return Http.post('/rest/weixin/xcx/saveForm', config); },
  /**
   * 绑定微信新
   */
  bindwechart: (config) => { return Http.post('/rest/member/bindingWX', config); },
};